package com.wm.bean;

import java.io.*;
import java.util.Date;

public class Collect implements Serializable {
	private static final long serialVersionUID = 3938860373226088110L;
	
	private long id;					//主键ID
	private long userId;			    //用户ID
	private long objId;					//对象ID，根据objType确定对象表ID
	private int valid;					//是否有效,0 无效1 有效
	private Date addTime;				//添加时间
	private int objType;				//对象类型：0饭店，1菜品，2便利店
	private Restaurant restaurant;		
	private ResMenu resMenu;
	
	public ResMenu getResMenu() {
		return resMenu;
	}
	public void setResMenu(ResMenu resMenu) {
		this.resMenu = resMenu;
	}
	public long getObjId() {
		return objId;
	}
	public void setObjId(long objId) {
		this.objId = objId;
	}
	public int getObjType() {
		return objType;
	}
	public void setObjType(int objType) {
		this.objType = objType;
	}
	public Restaurant getRestaurant() {
		return restaurant;
	}
	public void setRestaurant(Restaurant restaurant) {
		this.restaurant = restaurant;
	}
	public long getUserId() {
		return userId;
	}
	public void setUserId(long userId) {
		this.userId = userId;
	}
	public int getValid() {
		return valid;
	}
	public void setValid(int valid) {
		this.valid = valid;
	}
	public Date getAddTime() {
		return addTime;
	}
	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	

}
